package com.xqdok.wdj.thread;

import org.json.JSONException;
import org.json.JSONObject;
import org.json.JSONStringer;

import com.xqdok.wdj.model.Lishi;
import com.xqdok.wdj.model.Yonghu;
import com.xqdok.wdj.net.HttpConUtils;
import com.xqdok.wdj.net.NetUtil;

import android.content.Context;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import android.widget.Toast;

public class AddJiFenThread implements Runnable {
	private Context context;
	private HttpConUtils conUtils = new HttpConUtils();
	private Lishi lishi;
	private Handler handler;

	public AddJiFenThread(Context context, Lishi lishi) {
		this.context = context;
		this.lishi = lishi;
	}

	public AddJiFenThread(Context context, Lishi lishi, Handler handler) {
		this.context = context;
		this.lishi = lishi;
		this.handler = handler;
	}

	public void run() {
		// TODO Auto-generated method stub
		if (!new NetUtil(context).lianwang()) {
			return;
		}
		String str = conUtils.addJifen(lishi);

	}

}
